package cn.chenwx.bbsforum.service;

import cn.chenwx.bbsforum.entity.Comment;
import cn.chenwx.bbsforum.utils.BlogJSONResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentService {

    int findCommentsByArticleId(int id);

    List<Comment> findContentByArticleId(int id);
    BlogJSONResult DeleteContentById(int id);
    List<Comment> getAllComment(int pageNum,int rows);

    int getAllComments();

    BlogJSONResult getUserComment(int parseInt, int parseInt1, String username);
    BlogJSONResult getUserComments(String username);

    BlogJSONResult getComments(int id);

    BlogJSONResult insertComment(Comment comment);
}
